﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace DynamicMethodResolver
{
    /// <summary>
    /// Represents the class which is used to carry the details regarding the Method => its parameters and the contained class. 
    /// </summary>
    [DataContract]
    public class Criteria
    {
        /// <summary>
        /// Property which stores method parameters
        /// </summary>
        [DataMember]
        public Dictionary<string, object> Parameters { get; set; }

        /// <summary>
        /// Represents the class in which the method recides.
        /// </summary>
        [DataMember]
        public string Entity { get; set; }

        /// <summary>
        /// Represets the method to be invoked while calling the service.
        /// </summary>
        [DataMember]
        public string Method { get; set; }
    }
}
